#ifndef __PROTO_H__
#define __PROTO_H__

//所有支持多播的节点默认都在组播224.0.0.1内并且无法取消,往该地址发相当于广播
//#define MGROUP "224.2.2.3" //组播地址
#define MGROUP "239.255.255.249" //组播地址
//#define MGROUP "232.255.255.254" //组播地址
//#define RCVPORT "1989"
#define RCVPORT "1249"

#define NAMESIZE (11)

struct msg_st{
    uint8_t name[NAMESIZE];
    uint32_t math;
    uint32_t chinese;
}__attribute__((packed));

#endif //__PROTO_H__
